export default [
  {
    path: '/user',
    name: 'user',
    components: {
      default: () => import('@/views/user/index')
    },
    meta: {
      keepAlive: true,
      showHeader: false,
      navShow: true,
      hiddenButton: true,
      login: true
    }
  },
  {
    path: '/user/collect',
    name: 'collect',
    components: {
      default: () => import('@/views/user/collect')
    }
  },
  {
    path: '/user/coupons',
    name: 'coupons',
    components: {
      default: () => import('@/views/user/coupons')
    }
  },
  {
    path: '/user/reserves',
    name: 'reserves',
    components: {
      default: () => import('@/views/user/reserves')
    }
  },
  {
    path: '/user/traces',
    name: 'traces',
    components: {
      default: () => import('@/views/user/traces')
    }
  },
  {
    path: '/user/address',
    name: 'address',
    components: {
      default: () => import('@/views/user/address/index')
    }
  },
  {
    path: '/user/address/edit/:id',
    name: 'editAddress',
    components: {
      default: () => import('@/views/user/address/edit')
    }
  },
  {
    path: '/user/user-info',
    name: 'userInfo',
    components: {
      default: () => import('@/views/setting/user-info')
    }

  }, {
    path: '/user/security',
    name: 'security',
    components: {
      default: () => import('@/views/user/Security')
    }

  },
  {
    path: '/user/password',
    name: 'password',
    components: {
      default: () => import('@/views/user/password')
    }

  },
  {
    path: '/user/phone',
    name: 'phone',
    components: {
      default: () => import('@/views/user/phone')
    }

  },
  {
    path: '/user/extension',
    name: 'extension',
    components: {
      default: () => import('@/views/user/extension')
    }

  },
  {
    path: '/user/login',
    name: 'login',
    components: {
      default: () => import('@/views/user/login')
    },
    meta: {
      hiddenButton: true
    }

  },
  {
    path: '/user/register',
    name: 'register',
    components: {
      default: () => import('@/views/user/register')
    },
    meta: {
      hiddenButton: true
    }

  }

]
